package biz;

import dao.ProductImage;
import util.DBHelper;

public class ImageBiz {
    private ProductImage dao =new ProductImage();
    public void addImage(String proid,String image) throws BizException {
        if (image ==null || image.trim().isEmpty() ==true){
            throw new BizException("图片不能为空");
        }

        if (proid ==null || proid.trim().isEmpty() ==true){
            throw new BizException("商品出现异常,请联系管理员");
        }
        dao.addImage(proid, image);
    }
}
